package com.wodsy.phoenix.dataobject.shopc.model;

// Generated 2015-3-6 15:40:39 by Hibernate Tools 3.4.0.CR1

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * TbGoodsGcisRelation generated by hbm2java
 */
@Entity
@Table(name = "tb_goods_gcis_relation", catalog = "shopc")
public class GoodsGcisRelation extends PhoenixObject implements Serializable,PhoenixRequest,PhoenixResponse {

	private Integer id;
	private int gcisId;
	private int goodsId;

	public GoodsGcisRelation() {
	}

	public GoodsGcisRelation(int gcisId, int goodsId) {
		this.gcisId = gcisId;
		this.goodsId = goodsId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "gcis_id", nullable = false)
	public int getGcisId() {
		return this.gcisId;
	}

	public void setGcisId(int gcisId) {
		this.gcisId = gcisId;
	}

	@Column(name = "goods_id", nullable = false)
	public int getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	@Override
	public String toString() {
		return "GoodsGcisRelation [id=" + id + ", gcisId=" + gcisId
				+ ", goodsId=" + goodsId + "]";
	}

}
